<?php
header("Content-type:text/html;charset=utf-8");
session_start();
//检测是否登录，若没登录则转向登录界面
if(!isset($_SESSION['UID'])){
	header("Location:login.html");
	exit();
}
//包含数据库连接文件
include_once 'Controller/Login.class.php';
$userid = $_SESSION['UID'];
$username = $_SESSION['LOGINNAME'];
$user_query = mysql_query("select * from t_userlogin where UID = '$userid' limit 1");
$row = mysql_fetch_array($user_query);
echo '用户信息：<br />';
echo '用户ID：',$userid,'<br />';
echo '用户名：',$username,'<br />';
echo '<a href="login.php?action=logout">注销</a> 登录<br />';
?>